package com.zlt.bkparking.mapper;

import com.zlt.bkparking.entity.AdvertisementPlayed;
import com.zlt.bkparking.entity.AdvertisementPlayedExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdvertisementPlayedMapper {
    long countByExample(AdvertisementPlayedExample example);

    int deleteByExample(AdvertisementPlayedExample example);

    int deleteByPrimaryKey(Integer apId);

    int insert(AdvertisementPlayed record);

    int insertSelective(AdvertisementPlayed record);

    List<AdvertisementPlayed> selectByExample(AdvertisementPlayedExample example);

    AdvertisementPlayed selectByPrimaryKey(Integer apId);

    int updateByExampleSelective(@Param("record") AdvertisementPlayed record, @Param("example") AdvertisementPlayedExample example);

    int updateByExample(@Param("record") AdvertisementPlayed record, @Param("example") AdvertisementPlayedExample example);

    int updateByPrimaryKeySelective(AdvertisementPlayed record);

    int updateByPrimaryKey(AdvertisementPlayed record);


    int insertBatch(List<AdvertisementPlayed>  records);
    List<AdvertisementPlayed> selectPage(@Param("key") String key,
                                         @Param("startDate") String startDate,
                                         @Param("endDate") String endDate);

}